package com.zhangtai.modules.entity.leave;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

	

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-09-07 19:36:18
 */
@Data
@TableName("tb_leave_info")
public class LeaveInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * 
		 */
			@TableId(value = "id", type = IdType.AUTO)
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long id;
			/**
		 * 
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long oid;
			/**
		 * 婚假,1;产假,2;病假,3;丧假,4;事假,5;补休,6;年假,7;陪产假,8;哺乳假,9
		 */
			private Integer type;
			/**
		 * 请假开始日期
		 */
			private Date leaveBeginTime;
			/**
		 * 请假结束日期
		 */
			private Date leaveEndTime;
			/**
		 * 0：未发起 1：已发起待审批，2：审批完成，3：作废
		 */
			private Integer dealStatus;
			/**
		 * 请假天数
		 */
			private String leaveDay;
			/**
		 * 申请说明
		 */
			private String leaveRemark;
			/**
		 * 
		 */
			private String checkUrl;
			/**
		 * 附件地址
		 */
			private String fileUrl;
			/**
		 * 
		 */
			private Date createTime;

			private Integer isDelete;

			private String orgname;

	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
			private Long orgId;

	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
			private Long unitId;

	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
			private Long jobId;

	private String mobileUrl;

	//0 PC端，1 移动端，2 小程序，3 其他系统，4 未知"
	private Integer createType;
	
}
